package com.boardgame.users.repository;

import com.boardgame.users.entity.PlayerInfo;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by patrycja on 15.05.16.
 */
@Repository
public interface PlayerInfoRepository extends CrudRepository<PlayerInfo, Long> {
    PlayerInfo findOneByUserName(String userName);
    PlayerInfo findOneByEmail(String email);
}
